﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<JobDescOnline.Presentation.Models.JobTitleCompetency>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Admin Job Competency - Review JobDesc!
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="SideMenu" runat="server">
    <% Html.RenderPartial("MasterDataMenu"); %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Kompetensi Jabatan - Admin!</h2>
    <br />

    <p><%: Html.ActionLink("Data Baru", "Create") %></p>

    <table>
        <thead>
            <tr>
                <th style="width: 93px" class="notactive"></th>
                <th style="width: 45px">Aktif?</th>
                <th><a href="javascript: void(0);" class="eq-sort" des="eq-render" sort="JobTitle" direction="<%: ViewData["Dir"] %>">Jabatan</a></th>
                <th><a href="javascript: void(0);" class="eq-sort" des="eq-render" sort="Competency" direction="<%: ViewData["Dir"] %>">Kompetensi</a></th>
                <th><a href="javascript: void(0);" class="eq-sort" des="eq-render" sort="Level" direction="<%: ViewData["Dir"] %>">Level</a></th>
                <th style="width: 135px;">Dibuat Oleh</th>
                <th style="width: 135px;">Diubah Oleh</th>
            </tr>
            <tr des="eq-render">
                <td class="notactive"></td>
                <td class="notactive"></td>
                <td><input type="text" class="eq-search" field="JobTitle" /></td>
                <td><input type="text" class="eq-search" field="Competency" /></td>
                <td class="notactive"></td>
                <td class="notactive"></td>
                <td class="notactive"></td>
            </tr>
        </thead>
        <tbody id="eq-render">
            <% foreach (var item in Model) { %>
                <tr>
                    <td align="center">
                        <%: Html.ActionLink("Ubah", "Edit", new { id=item.ID }) %> |
                        <%: Html.ActionLink("Hapus", "Delete", new { id = item.ID }, new { @onclick = "return confirm('Are you sure?')" })%>
                    </td>
                    <td><%: item.Rowstatus %></td>
                    <td><%: item.JobTitleName %></td>
                    <td><%: item.Competency %></td>
                    <td><%: item.Level %></td>
                    <td>
                        <%: item.CreatedBy %><br />
                        <%: String.Format("{0:g}", item.CreatedOn) %>
                    </td>
                    <td>
                        <%: item.LastModifiedBy %><br />
                        <%: String.Format("{0:g}", item.LastModifiedOn) %>
                    </td>
                </tr>
            <% } %>
        </tbody>
    </table>
    <br />
    <div id="pagelink" rdr="eq-render"><%= ViewData["Pagination"] %><div class="clear"></div></div>
</asp:Content>